const getRouterCascader = (router = {}) => {
    let cascader = [];
    for (let i = 0; i < router.length; i++) {
        let r = router[i]
        if (r.children) {
            cascader.push({value: r.name, label: r.meta.title, children: getRouterCascader(r.children)})
        } else {
            cascader.push({value: r.name, label: r.meta.title});
        }
    }
    return cascader
};
export default function (Vue) {
    Vue.prototype.$helper = {
        getRouterCascader
    }
}
